import request from '@/utils/system/request'

// 获取基础数据
export function teamProfile(data: object) {
    return request({
        url: '/admin/team/profile',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function profileUpdate(data: object) {
    return request({
        url: '/admin/team/profile_update',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function effectiveNumber(data: object) {
    // 获取有效人数
    return request({
        url: '/admin/team/effective_number',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function effectiveNumberUpdate(data: object) {
    // 获取有效人数
    return request({
        url: '/admin/team/effective_number_update',
        method: 'post',
        baseURL: '/api',
        data
    })
}

export function teamIncome(data: object) {
    // 获取有效人数
    return request({
        url: '/admin/team/income',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function incomeUpdate(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/income_update',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamPage(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_page',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function historyPeopleLevel(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/history_people_level',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function profileUdate(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/profile_update',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamEdit(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_edit',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamInfo(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_info',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamManagePage(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_manage_page',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamMemberIncomeByCount(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_member_income_by_count',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamMemberIncomeBySum(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_member_income_by_sum',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function inviteUrl(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/invite_url',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function incomeExport(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/income_export',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function effectiveNumberExport(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/effective_number_export',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function teamInfoExport(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/team_info_export',
        method: 'post',
        baseURL: '/api',
        data
    })
}
export function deleteTeam(data: object) {
    // 修改有效人数
    return request({
        url: '/admin/team/delete_team',
        method: 'post',
        baseURL: '/api',
        data
    })
}
